package com.hz.activity7;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;
import org.springframework.stereotype.Component;

@Component
public class MyTaskListener1 implements TaskListener {
    @Override
    public void notify(DelegateTask delegateTask) {
        System.out.println("========================MyTaskListener1========================");
        System.out.println("==数据==>delegateTask.getProcessInstanceId() = " + delegateTask.getProcessInstanceId());
        System.out.println("==数据==>delegateTask.getTaskDefinitionKey() = " + delegateTask.getTaskDefinitionKey());
        System.out.println("==数据==>delegateTask.getEventName() = " + delegateTask.getEventName());
        System.out.println("==数据==>delegateTask.getName() = " + delegateTask.getName());
        System.out.println("==数据==>delegateTask.getAssignee() = " + delegateTask.getAssignee());
        System.out.println("==数据==>delegateTask.getVariables() = " + delegateTask.getVariables());
    }
}

